package com.yanqu.road.entity.servercenter;

import com.yanqu.road.utils.string.StringUtils;

import java.util.ArrayList;
import java.util.List;

public class HotfixVersion {
    private String packageMark = "";        //包体标识
    private String packageVersion = "";     //包体版本
    private String hotfixVersion = "";      //热更包版本
    private String updateScopeStr;          //更新范围，0：白名单；1：先遣服；2：正式
    private List<Integer> updateScopeList = new ArrayList<>();  //更新范围
    private boolean isReview;               //是否提审
    private int updateLevel;                //更新级别，0：不需要更新；1：建议更新；2：强制更新
    private String updateVersion = "";      //更新版本
    private List<String> reviewAppIdList = new ArrayList<>();       //提审appid列表，目前是给华为渠道提审用

    public String getPackageMark() {
        return packageMark;
    }

    public void setPackageMark(String packageMark) {
        this.packageMark = packageMark;
    }

    public String getPackageVersion() {
        return packageVersion;
    }

    public void setPackageVersion(String packageVersion) {
        this.packageVersion = packageVersion;
    }

    public String getHotfixVersion() {
        return hotfixVersion;
    }

    public void setHotfixVersion(String hotfixVersion) {
        this.hotfixVersion = hotfixVersion;
    }

    public String getUpdateScopeStr() {
        return updateScopeStr;
    }

    public void setUpdateScopeStr(String updateScopeStr) {
        this.updateScopeStr = updateScopeStr;
        List<Integer> dataList = StringUtils.stringToIntegerList(updateScopeStr, ",");
        setUpdateScopeList(dataList);
    }

    public List<Integer> getUpdateScopeList() {
        return updateScopeList;
    }

    public void setUpdateScopeList(List<Integer> updateScopeList) {
        this.updateScopeList = updateScopeList;
    }

    public boolean isReview() {
        return isReview;
    }

    public void setReview(boolean review) {
        isReview = review;
    }

    public int getUpdateLevel() {
        return updateLevel;
    }

    public void setUpdateLevel(int updateLevel) {
        this.updateLevel = updateLevel;
    }

    public String getUpdateVersion() {
        return updateVersion;
    }

    public void setUpdateVersion(String updateVersion) {
        this.updateVersion = updateVersion;
    }

    public List<String> getReviewAppIdList() {
        return reviewAppIdList;
    }

    public void setReviewAppIdList(List<String> reviewAppIdList) {
        this.reviewAppIdList = reviewAppIdList;
    }
}
